<!--商品列表-->
	<div class="ModConts">
{qb:tag name='wap_index_text1' type="myform" conf="default/index/index_mod/list_shop"}
		<!--<div class="head"><div class="tag">热门服务</div><div class="more">助力中国食品工业数字化转型</div></div>-->
		<div class="head"><div class="tag">{$_cfg.title_1}</div><div class="more">{$_cfg.title_2}</div></div>
{/qb:tag}
		<div class="ListShops">
{qb:tag name='wap_index_text2' type="shop" rows="3" conf="default/index/index_mod/list_shop"}
<!--
			<div class="lists">
				<ul>
					<ol><a href="#"><img src="https://www.gdblue.com/upload/202003/1583747064247992.gif"></a></ol>
					<li>
						<div class="title"><a href="#">生产执行系统开发实施</a></div>
						<div class="fname"><a href="#">限时特惠</a></div>
						<div class="price"><div>&yen; 68000<span>起</span></div></div>
						<div class="time">距离结束<em>18989779</em> <span></span></div>
					</li>
				</ul>
			</div>
			<div class="lists">
				<ul>
					<ol><a href="#"><img src="https://img.zcool.cn/community/01ad4d5b56cec4a8012036bed577e0.gif"></a></ol>
					<li>
						<div class="title"><a href="#">工业数字化改造及ERP实施</a></div>
						<div class="fname"><a href="#">限时特惠</a></div>
						<div class="price"><div>&yen; 150000<span>起</span></div></div>
						<div class="time">距离结束<em>18190000</em> <span></span></div>
					</li>
				</ul>
			</div>
-->
<style>
	.ListShops .lists ul .price{
		    width: 38%;
	}
</style>
			<div class="lists">
				<ul>
					<ol><a href="{$rs.url}"><img src="{$rs.picurl}"></a></ol>
					<li>
						<div class="title"><a href="{$rs.url}">{$rs.title}</a></div>
						<!-- <div class="fname"><a href="#">小编推荐</a></div> -->
						<div class="price"><div>&yen; {$rs.price}<span>起</span></div></div>
						{php}$time=time()-$rs['create_time'];{/php}
						<!-- <div class="time">已有<em>{$rs.view}</em> 人咨询 <span></span></div> -->
					</li>
				</ul>
			</div>
{/qb:tag}
		</div>
		<div class="butters">
			<button type="butter" onclick="showMoreShop('{qb:url name="wap_index_text2"/}')" class="showMoreShop">查看更多</button>
		</div>
	</div>

<script type="text/javascript" src="__STATIC__/index/default/showtime.js"></script>
<script type="text/javascript">
var shoppage=1;
function showMoreShop(url){	
	shoppage++;
	$.get(url+shoppage+'&'+Math.random(),function(res){
		if(res.code==0){
			if(res.data==''){
				layer.msg("已经显示完了！",{time:300});
				$('.showMoreShop').attr('onclick','');
				$('.showMoreShop').html('显示完了');
				$('.showMoreShop').css({'background':'#CCC'});
			}else{
				res.data="<span class='pages"+shoppage+"'>"+res.data+"</span>";			
				$('.ListShops').append(res.data);
				$('.ListShops .pages'+shoppage).hide();
				$('.ListShops .pages'+shoppage).show(300);
			}
		}else{
			layer.msg(res.msg,{time:2500});
		}
	});
}

var checktime=0;
function show_time(){
	checktime++;
	$('.ListShops .lists .time').each(function(){
		var thetime=parseInt($(this).find('em').html())-checktime;
		$(this).find('span').html(format_time(thetime));
	});
}
setInterval("show_time()",1000);
</script>